import requests
import time

base_url = "http://122.51.0.97/mapi/"
paths = [
    "user/info", "data/list", "auth/login",
    "product/get", "v1/search", "main/Search"
]

found = []
for path in paths:
    url = base_url + path
    try:
        resp = requests.get(url, timeout=5)
        if resp.status_code == 200:
            found.append(url)
            print(f"[+] Found: {url}")
        else:
            print(f"[-] {url} → Code: {resp.status_code}")
    except Exception as e:
        print(f"[!] Error: {url} → {str(e)}")
    time.sleep(1)  # 避免频繁请求

print("\nDiscovered endpoints:", found)